CC=g++
CFLAGS=-O3 -mtune=core2 #--coverage 
EXECUTABLE=machineReassignement
LIB= #-lgcov

default: roadef

roadef: main.o roadef.o solution_checker.o
	$(CC) main.o roadef.o solution_checker.o -o $(EXECUTABLE) $(LIB)

roadef.o: roadef.cpp roadef.h
	$(CC) $(CFLAGS) -c roadef.cpp $(LIB)

solution_checker.o: solution_checker.cc solution_checker.h
	$(CC) $(CFLAGS) -c solution_checker.cc $(LIB)

main.o: main.cpp
	$(CC) $(CFLAGS) -c main.cpp $(LIB)

clean:
	rm -rf *.o $(EXECUTABLE) *~ *gcov *gcno *gcda callgrind*


